def displayPattern(n):
    for i in range(0,n):
        for j in range(i+1,n):
            print(' ',end=' ')
        for j in range(i+1,0,-1):
            print(j,end=' ')
        print()
displayPattern(10)